package com.moli.iov.base.dao.impl;

import com.moli.iov.base.dao.MongoBaseDao;
import com.moli.iov.base.dao.VehicleRegisterRecordDao;
import com.moli.iov.base.model.mongo.VehicleRegisterRecord;
import com.moli.iov.model.dto.req.PageExtend;
import org.springframework.data.mongodb.core.query.Query;
import org.springframework.stereotype.Repository;

/**
 * @author whl
 */
@Repository
public class VehicleRegisterRecordDaoImpl extends MongoBaseDao<VehicleRegisterRecord> implements
    VehicleRegisterRecordDao {

  @Override
  public void saveVehicleRegisterRecord(VehicleRegisterRecord record) {
    this.save(record);
  }

  @Override
  public PageExtend<VehicleRegisterRecord> listVehicleRegisterRecord(VehicleRegisterRecord record) {
    return this.findPage(new PageExtend<>(), new Query());
  }
}
